<?php //echo var_dump($_POST);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style></head>

<body>
<table width="795" border="1" cellspacing="1" cellpadding="1" align="center">
  <tr><th colspan="3" valign="top">
    THONG KE KHACH HANG THAN THIET   </th>
   </tr>
     <tr>
    <td valign="top"  colspan="3" valign="top"> 
    <div align="left">Thong ke theo
   
    <form name="frm_chon" method="post" action="">
    	<select name="cmb_chon">
            <option value="TP HCM"> Dia Chi TP HCM </option>
            <option value="Quan 1"> Dia Chi Q.1 </option>
            <option value="Quan 2"> Dia Chi Q.2 </option>
        </select>
        <input name="bt_ok" type="submit" value="Thong Ke" />
     </form>
    </div></td>
    
  </tr>
  <tr>
    <td width="200" valign="top" bgcolor="#000000"><div align="center"><span class="style1">TEN KHACH HANG</span></div></td>
    <td width="150" valign="top" bgcolor="#000000"><div align="center"><span class="style1">DIA CHI</span></div></td>
    <td width="150" valign="top" bgcolor="#000000"><div align="center"><span class="style1">DIEN THOAI</span></div></td>
  </tr>
  <?php if(isset($data)){
  			foreach ($data['list'] as $key => $value){
  ?>
  
  <tr>
    <td width="200" valign="top"><?php echo $value['TenKH'];?></td>
    <td width="150" valign="top"><?php echo $value['DiaChi'];?></td>
    <td width="150" valign="top"><?php echo $value['SDT'];?></td>
  </tr>
<?php 
  		}
 }
 else{
 ?>
 	<tr>
    <td width="200" valign="top" colspan = "3"><?php echo 'Ban chon chuc nang thong ke';?></td>
  </tr>
 <?php } ?>
</table>
</body>
</html>
